package cn.ibizlab.core.open.justauth;

import me.zhyd.oauth.config.AuthSource;
import me.zhyd.oauth.request.AuthDefaultRequest;
import me.zhyd.oauth.request.AuthGiteeRequest;

public enum JustAuthSource implements AuthSource {

    /**
     * 示例
     */
    EXAMPLE {
        public String authorize() {
            return "https://xxx.com/oauth/authorize";
        }

        public String accessToken() {
            return "https://xxx.com/oauth/token";
        }

        public String userInfo() {
            return "https://xxx.com/api/v5/user";
        }

        public Class<? extends AuthDefaultRequest> getTargetClass() {
            return AuthExampleRequest.class;
        }
    }
}
